
import './CouponManagement.css'
import React from 'react'
import {Menu} from 'antd'
import {inject,observer} from 'mobx-react'
// 组件


import {NavLink, withRouter} from 'react-router-dom'





@withRouter
@inject('xinJianYouHuiJuan')
@observer
class CouponManagement extends React.Component {



    render() {
        let insertData = ()=>{
            console.log(11)
            this.props.xinJianYouHuiJuan.isUpdate()
        }
        return (
            <div className="youHuiJuan">
                <h1  style={{ color: 'white' }}>优惠卷管理</h1>
                <div className="top">
                <Menu
                  className='nav'
                  mode='horizontal'
                  style={{background:'transparent'}}     
                >
                   <Menu.Item key='1'>
                     <NavLink to='/Home/cuXiao/CouPon/youhuijuanGuanLi'>管理</NavLink>
                     </Menu.Item>   
                     <Menu.Item key='2'>
                     <NavLink onClick={insertData} to='/Home/cuXiao/CouPon/NewCoupons'>新增</NavLink>
                     </Menu.Item>                      
                </Menu>
                </div>
                <div className="content">
                    {this.props.children}
                </div>

            </div>
        )
    }
}

export default CouponManagement